<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<title>_点收对比</title>
<script type="text/javascript">
	$(function(){
		$("#box_title").html("${billType eq 'preOrder' ? '预约信息' : billType eq 'allot' ? '调拨信息' :''}");
	});
</script>
</head>

<body>
	<section class="content">
		<%-- <div class="row">
			<div class="col-md-12">
				<div class="box box-solid box-primary">
					<div class="box-header">
						<i class="fa fa-list"></i>
						<h3 class="box-title">点收信息</h3>
						<div class="box-tools pull-right">
							<button class="btn btn-primary btn-sm" data-widget="collapse"
								type="button">
								<i class="fa fa-minus"></i>
							</button>
						</div>
					</div>
					<div class="box-body">
						<table id="contentTable"
							class="table table-striped table-bordered table-condensed">
							<thead>
								<tr>
									<th>序号</th>
									<th>入库单号</th>
									<th>SKU</th>
									<th>数量</th>
								</tr>
							</thead>
							<tbody>
								<c:if test="${not empty countItemList}">
									<c:forEach items="${countItemList}" var="dto" varStatus="i">
										<tr>
										   <td>${i.count}</td>
										   <td>${dto.billCode}</td>
										   <td>${dto.sku}</td>
										   <td>${dto.num}</td>
										</tr>
									</c:forEach>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div> --%>
		<div class="row">
			<div class="col-md-12">
				<div class="box box-solid box-primary">
					<div class="box-header">
						<i class="fa fa-list"></i>
						<h3 class="box-title" id="box_title">点收信息</h3>
						<div class="box-tools pull-right">
							<button class="btn btn-primary btn-sm" data-widget="collapse"
								type="button">
								<i class="fa fa-minus"></i>
							</button>
						</div>
					</div>
					<div class="box-body">
						<table id="compareTable"
							class="table table-striped table-bordered table-condensed">
							<thead>
								<tr>
									<th>序号</th>
									<th>相关单号</th>
									<th>SKU</th>
									<th>数量</th>
									<th>点收数量</th>
								</tr>
							</thead>
							<tbody>
								<c:if test="${not empty preOrder.instorageBillItemPres}">
									<c:forEach items="${preOrder.instorageBillItemPres}" var="dto" varStatus="i">
										<tr>
										   <td>${i.count}</td>
										   <td>${preOrder.instorageBillPre.billCode}</td>
										   <td>${dto.skuCode}</td>
										   <td>${dto.goodsNum}</td>
										   <td>${dto.countNum}</td>
										</tr>
									</c:forEach>
								</c:if>
								<c:if test="${not empty allotItemList}">
									<c:forEach items="${allotItemList}" var="dto" varStatus="i">
										<tr>
										   <td>${i.count}</td>
										   <td>${dto.billCode}</td>
										   <td>${dto.sku}</td>
										   <td>${dto.num}</td>
										   <td>${dto.countNum}</td>
										</tr>
									</c:forEach>
								</c:if>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</section>
</body>
</html>
